% Reads an image and returns a matrix representation of each of its pixels
% dynamic reading for files according to how they are sorting
% must be in the format 01.bmp in order to read the next 02.bmp

function images = readImages( imagePath )
    D = dir(imagePath);
    [x,~] = size(D);
    numberOfImages = x-2;
    images = cell(1,numberOfImages);
        for i = 1 : numberOfImages
           images{i} = imread(strcat(imagePath , '\',  D(i+2,1).name));
        end
end